package deneme.com;

public class Member<T> {
	private T id;
	 

	public Member(T id) {
		this.id = id;
	}

	public void setId(T id) {
		this.id = id;
	}

	public T getId() {
		return id;
	}

	public static void main(String[] args) {

		Member<String> mString = new Member<String>("id1");
		mString.setId("id2");
		System.out.printf("id after setting id: %s%n", mString.getId());

		Member<Integer> mInteger = new Member<Integer>(1);
		mInteger.setId(1);
		System.out.printf("id after setting id: %d%n", mInteger.getId());

	}

}
